package cap5.ex1;

import javax.swing.JOptionPane;

public class AppRetangulo {
	public static void main(String args[]) {
		Retangulo ret = new Retangulo();

		ret.lado1 = Double.parseDouble(JOptionPane
				.showInputDialog("Digite o valor do lado 1: "));
		ret.lado2 = Double.parseDouble(JOptionPane
				.showInputDialog("Digite o valor do lado 2: "));

		System.out.println(ret);
		System.out.println(ret.getPerimetro());
		System.out.println(ret.getArea());
	}
}
